From: Sundeep Mediratta Date: Sun, 23 Jun 2024 19:12:34 +0000 (-0400) Subject: workspace: Use better window check option in existing code X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~257^2^2~5 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1803cd84097b0af339309f1d88c57c8040972c9b;p=gnome-shell.git workspace: Use better window check option in existing code Part-of: (cherry picked from commit 46c74acb1be817a2fee3c8def29627cea618b144) --- diff --git a/js/ui/workspace.js b/js/ui/workspace.js index 147b843de..09fe3abdb 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -1202,7 +1202,7 @@ class Workspace extends St.Widget { // We might have the window in our list already if it was on all workspaces and // now was moved to this workspace - if (this._lookupIndex(metaWin) !== -1) + if (this.containsMetaWindow(metaWin)) return; if (!this._isMyWindow(metaWin))